<?php

declare(strict_types=1);

namespace App\Controller\Rpc;

use App\JsonRpc\RpcOrderServiceInterface;
use Hyperf\Di\Annotation\Inject;

/**
 * 分布式事务 显式 dtm http 调用.
 */
class RpcOrderServiceController implements RpcOrderServiceInterface
{
    #[Inject]
    private RpcOrderServiceInterface $rpcOrderService;

    public function createTest(): int
    {
        return $this->rpcOrderService->createTest();
    }

    public function createTestError(): mixed
    {
        return $this->rpcOrderService->createTestError();
    }
}
